package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysShipments;
import com.jk.smartelderlycare.dto.SysStore;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/12/5 18:41
 * @Version v1.0
 */
public interface SysShipmentsServiceApi {

    //分页查询
    @PostMapping(value = "/store/findShipmentsPaginationList")
    public PagedResponse<SysShipments> findShipmentsPaginationList(@RequestBody SysShipments sysShipments, @RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize);

    //查询单个表
    @GetMapping(value = "/store/findShipmentsList")
    public List<SysShipments> findShipmentsList();

    //新增
    @PostMapping(value = "/store/addShipments")
    public void addShipments(@RequestBody SysShipments sysShipments);

}
